package cyh.domain.entity;

public class User extends BaseEntity{

    /**
     * 用户名,用来登录的
     */
    public String username;
    /**
     * 真实姓名
     */
    public String name;
    /**
     * 电话
     */
    public String mobile;
    /**
     * 邮箱
     */
    public String email;
    /**
     * 所属部门
     */
    public int deptId;
    /**
     * 具有的角色Id
     */
    public int roleId;
    /**
     * 状态：启用|禁用
     */
    public boolean enabled=true;

    public User() {
    }

    public User(int id ,String username, String name, String mobile, String email, int deptId, int roleId) {
        super(id);
        this.username = username;
        this.name = name;
        this.mobile = mobile;
        this.email = email;
        this.deptId = deptId;
        this.roleId = roleId;
    }
}